package com.kakarote.hrm.entity.PO;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 数据推送
 * </p>
 *
 * @author ldq
 * @since 2020-05-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wk_hrm_data_push_detail")
@ApiModel(value = "HrmDataPushDetail对象", description = "数据推送记录详情表")
public class HrmDataPushDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long pushId;

    @ApiModelProperty(value = "状态码")
    private String code;

    @ApiModelProperty(value = "提示信息(给出的失败提示)")
    private String msg;

    @ApiModelProperty(value = "请求成功，返回查询结果，请求失败，返回null")
    private String result;

    @ApiModelProperty(value = "true:成功/false:失败")
    private String success;

    @TableField(fill = FieldFill.INSERT)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUserId;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;


}
